<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/clickmenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript"src="[%$url%]js/city.js?v=[%$softversion%]"></script>
<script type="text/javascript" src="js/aotucity.js"></script>
<script type="text/javascript">

	var resizewindow= null;

	window.onresize = function(){
		var h = $(window).height();
		if(resizewindow!=h){
			sizewindow();
			resizewindow=h;
		}
	}

	function sizewindow(){
		var h = $(window).height();
		if(document.getElementById("mainbodyauto")){
			$('.manageadd').css({height:h-40});
			$('.manageedit').css({height:h-40});
		}
	}
	var setting_js_save_ok = "[%$ST.setting_js_save_ok%]";
	var setting_js_save_no = "[%$ST.setting_js_save_no%]";
	var iframename = "[%$iframename%]";
	$(document).ready(function(){
		var h = '[%$iframeheightwindow%]';
		$('.manageadd').css({height:h-40});
		var options = {
			dataType: 'json',
			beforeSubmit: formverify,
			success:saveResponse
		}
		$('#setting[%$groupid%]').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	})




	function formverify(formData) {
		parent.windowsdig('Loading','iframe:index.php?archive=management&action=load','400px','180px','iframe',false);
	}
	function saveResponse(options){
		parent.closeifram();
		var tab=document.getElementById("settingtab"+options.groupid).value;
		if (options.post=='true'){
			alert(setting_js_save_ok);
		}else{
			alert(setting_js_save_no);
		}
		if (tab=='true'){
			parent.onaletdoc()
		}
		
	}
	var siteurl = "[%$url%]";
</script>
</head>

<body>
<form name="setting[%$groupid%]" id="setting[%$groupid%]" method="post" action="index.php?archive=management&action=citysetsave">
	<input type="hidden" name="groupid" value="[%$groupid%]">
	<input type="hidden" name="tab" id="settingtab[%$groupid%]" value="[%$tab%]">
	<div id="mainbodyauto" class="manageadd">
		<div class="maindobycontent">
			<!--查看已选择的类型-->
			<div class="suggestion">
				<span class="sugicon"><span class="strong colorgorning2">[%$ST.position_title%]</span><span class="colorgorningage">[%$ST.setting_edit_mess%]</span></span>
			</div>
			<div class="sugtitle">
				<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.setting_edit_input_mess%]</span></span>
			</div>
			<div class="sugtitle-line"></div>
			<div class="formdiv">
            <!--城市弹出框start-->
<div id="cityresults" class="cityresults" style="width: 340px;">
    <div style="width: 100%;">
        <div class="ac_title"><h3><span> 拼音支持首字母输入, 或 <span style="font-family: simsun;">&nbsp;←↑↓→&nbsp;</span> 选择 </span></h3><a class="ac_close" title="关闭" href="javascript:ac_close();"></a> </div>
        <ul class="abctab" method="hotTab">
            <li class="action" onclick="cityTablist(1);">热门</li>
            <li onclick="cityTablist(2);">ABCD</li>
            <li onclick="cityTablist(3);">EFGHJ</li>
            <li onclick="cityTablist(4);">KLMN</li>
            <li onclick="cityTablist(5);">PQRSTW</li>
            <li onclick="cityTablist(6);">XYZ</li>
         </ul>
         <div id="abclist"></div>
    </div>
</div>
				<table border="0" width="100%">
                    <tr class="trstyle2">
						<td width="18%" class="trtitle01">网站副标题</td>
						<td width="82%" class="trtitle02"><input type="text" name="subname" size="20" maxlength="50" value="[%$subname%]" class="infoInput"/><span class="cautiontitle">比如logo是旅易中国，副标题可以填成都站</span></td>
                    </tr>
                    <tr class="trstyle2">
						<td width="18%" class="trtitle01">增加默认城市</td>
						<td width="82%" class="trtitle02"><input type="text"id="cityname" name="cityname" value="" size="20"class="infoInput"title="可以填写汉字、拼音、拼音缩写"/><input type="hidden"id="cityid"name="cityid" />
<span class="cautiontitle">可以输入城市首字母，城市拼音，缩写会自动提示，然后直接选择即可，比如洛阳、l、ly、luoyang</span><div id="citynametips"class="citynametips"></div><div id="autoCompleteCityName" class="cityname"></div></td>
                    </tr>
                    <tr class="trstyle2">
						<td width="18%" class="trtitle01">首页默认城市</td>
						<td width="82%" class="trtitle02"><textarea id="hcitylist" name="hcitylist" cols="70" rows="3" class="infoInput">[%$hcitylist%]</textarea></td>
                    </tr>
                    <tr class="trstyle2">
						<td width="18%" class="trtitle01"></td>
						<td width="82%" class="trtitle02"><span class="cautiontitle" style="background-image:none; padding-left:0; line-height:20px;">最多显示12个城市，要增加城市请先删除几个，一定要保持格式完整，城市之间用","英文逗号隔开，"|"前是城市代码，"|"后是城市名称</span></td>
					</tr>

					<tr>
						<td colspan="2"></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div id="downbotton">
		<div id="subbotton">
			<table border="0" width="100%">
				<tr>
					<td id="right"><input type="submit" name="Submit" value="[%$ST.botton_edit%]" class="buttonface" /></td>
					<td id="left" class="padding-left5"><input type="button" name="cancel" onClick="javascript:parent.onaletdoc();" value="[%$ST.botton_edit_reset%]" class="buttonface" /></td>
				</tr>
			</table>
		</div>
	</div>
</form>
</body>

</html>